<template>
  <!--嵌套路由 -->
  <div>
    <!-- 导航栏 -->
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item name="home" to="/home" icon="wap-home-o"
        >首页</van-tabbar-item
      >
      <van-tabbar-item name="cate" to="/cate" icon="search"
        >分类</van-tabbar-item
      >
      <van-tabbar-item name="cart" to="/cart" icon="cart-o"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item name="my" to="/my" icon="manager-o
"
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: "home",
    };
  },
};
</script>

<style>
</style>